<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function doSubmit(action){
	if(confirm("do you want to "+action+"?")){
		return true;
	}
	return false;
}
function doClick(){
	var obj = event.srcElement ? event.srcElement:event.target; 
	obj.readOnly = !obj.readOnly;
}
function doChange(){
	var obj = event.srcElement ? event.srcElement:event.target;
	obj.style.color = "red"; 
}
function doOver(){
	var obj = event.srcElement ? event.srcElement:event.target; 
	obj.style.backgroundColor = "red";
}
function doOut(){
	var obj = event.srcElement ? event.srcElement : event.target;
	obj.style.backgroundColor = "transparent";
}
function doFocus(){
	var obj = event.srcElement ? event.srcElement : event.target;
	obj.style.backgroundColor = "#FFFFCC";
}
function doBlur(){
	var obj = event.srcElement ? event.srcElement : event.target;
	obj.style.backgroundColor = "white";
}
</script>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" height="29" valign="top" background="images/mail_leftbg.gif">
				<img src="images/left-top-right.gif" width="17" height="29" />
			</td>
			<td width="935" height="29" valign="top" background="images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31">
							<div class="titlebt">
								报修详情
							</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top" background="images/mail_rightbg.gif">
				<img src="images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>
		<tr>
			<td height="71" valign="middle" background="images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="100%" height="138" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td height="13" valign="top">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td valign="top">
							<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
							<script src="/tiny_mce/tiny_mce.js"></script>
							<script src="/js/bjq.js"></script>
							<s:iterator var="repair" value="%{#request.repair}">
							<s:form id="theForm" action="updateRepair" enctype="multipart/form-data" theme="simple">
								<s:token></s:token>
								<s:hidden name="repair.rid" value="%{#repair.rid}"></s:hidden>
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td class="left_txt">
											当前位置：管理报修
										</td>
									</tr>
									<tr>
										<td height="20">
											<table width="100%" height="1" border="0" cellpadding="0"
												cellspacing="0" bgcolor="#CCCCCC">
												<tr>
													<td></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="55" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="10%" height="55" valign="middle">
														<img src="images/title.gif" width="54" height="55">
													</td>
													<td width="90%" valign="top">
														<span class="left_txt2">管理报修!</span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											&nbsp;
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="31" border="0" cellpadding="0"
												cellspacing="0" class="nowtable">
												<tr>
													<td class="left_bt2">
														&nbsp;&nbsp;&nbsp;&nbsp;报修&nbsp;&nbsp;&lt;&nbsp;序号: ${repair.rid}&nbsp;&gt;
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														住户：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:action name="listTenement" namespace="/admin"></s:action>
														<s:action name="findTenementByRepair" namespace="/admin">
															<s:param name="repair.rid" value="%{#repair.rid}"></s:param>
														</s:action>
														<s:iterator var="tenement" value="%{#request.tenements}">
															<s:hidden name="repair.tenements" value="%{#tenement.tid}"></s:hidden>
															<s:a href="getTenement.action?tenement.tid=%{#tenement.tid}">
																<s:property value="%{#tenement.tname}"/>
															</s:a>
														</s:iterator>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.tenements" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														日期：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:date name="%{#repair.date}" format="yyyy-MM-dd" var="coDate"/>
														<s:textfield name="repair.date" value="%{#coDate}" size="23"
															readonly="true" onmouseover="doOver()" onmouseout="doOut()">
														</s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.date" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														原因：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="repair.title" value="%{#repair.title}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.title" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														内容：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textarea name="repair.content" value="%{#repair.content}" 
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textarea>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.content" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														处理情况：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:radio name="repair.dealState" list="%{#{'Y':'是','N':'否'}}" value="%{#repair.dealState}"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()">
														</s:radio>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.payed" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														处理日期：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:date name="%{#repair.dealDate}" format="yyyy-MM-dd" var="dealDate"/>
														<s:textfield name="repair.dealDate" value="%{#dealDate}"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()">
														</s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.owe" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														处理人：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textfield name="repair.transactor" value="%{#repair.transactor}" size="23"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()"></s:textfield>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.transactor" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														备注：
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:textarea name="repair.note" value="%{#repair.note}"
															onblur="doBlur()" onfocus="doFocus()" onchange="doChange()">
														</s:textarea>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														<s:fielderror name="repair.note" cssStyle="color:red"></s:fielderror>
													</td>
												</tr>
												<tr>
													<td width="20%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														&nbsp;
													</td>
													<td width="3%" bgcolor="#f2f2f2">
														&nbsp;
													</td>
													<td width="32%" height="30" bgcolor="#f2f2f2">
														<s:submit type="image" value="提交" src="images/Login_but.gif"></s:submit>
														&nbsp;&nbsp;&nbsp;&nbsp;
														<s:reset value="重置"></s:reset>
													</td>
													<td width="45%" height="30" bgcolor="#f2f2f2"
														class="left_txt">
														&nbsp;
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</s:form>
							</s:iterator>
						</td>
					</tr>
				</table>
			</td>
			<td background="images/mail_rightbg.gif">
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">
				<img src="images/buttom_left2.gif" width="17" height="17" />
			</td>
			<td height="17" valign="top" background="images/buttom_bgs.gif">
				<img src="images/buttom_bgs.gif" width="17" height="17" />
			</td>
			<td background="images/mail_rightbg.gif">
				<img src="images/buttom_right2.gif" width="16" height="17" />
			</td>
		</tr>
	</table>
</body>